package com.campus.mapper;

import com.campus.common.Result;
import com.campus.entity.PostLikes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PostLikesMapper {
    int likePost(PostLikes postLikes);

    int getAllLikesByPostId(String postId);

    int deleteByPostAndUserId(@Param("postId") String postId, @Param("userId") String userId);

    int checkLike(@Param("postId") String postId, @Param("userId") String userId);
}